package br.com.gsa.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table(name="FUNCIONARIO", schema="GSA")
public class Funcionario implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private String matricula;
	
	@Column(name="nome_func", length=60)
	@NotEmpty
	@Size(max=60)
	private String nomeFucionario;
	
	
	@Column(name="rg")
	@NotEmpty
	@Size(max=25)
	private String rg;


	public String getMatricula() {
		return matricula;
	}


	public void setMatricula(String matricula) {
		this.matricula = matricula;
	}


	public String getNomeFucionario() {
		return nomeFucionario;
	}


	public void setNomeFucionario(String nomeFucionario) {
		this.nomeFucionario = nomeFucionario;
	}


	public String getRg() {
		return rg;
	}


	public void setRg(String rg) {
		this.rg = rg;
	} 
	
	
	
}
